package com.oreilly.ez.entity;


import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import java.math.BigDecimal;

@Data
@Entity
@Table(name = "payment")
@ToString
public class Payment  extends BaseEntity {


  // new field...

    //支付方式
    @Column(name = "pay_type")
    private String payType;

    //金额
    @Column(name = "pay_fee")
    private BigDecimal payFee;


    //支付的是  哪一个报名信息
    @ManyToOne
    @JoinColumn(name = "study_id")
    private Study study;

}
